package com.mr.shiro.commons.shiro;

import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.credential.SimpleCredentialsMatcher;

/**
 * Class: CustomCredentialsMatcher
 * User (作者):MRui
 * TODO (描述)：自定义凭证匹配器
 * Date 2019-01-13 22:48
 */
public class CustomCredentialsMatcher extends SimpleCredentialsMatcher {

    /**
    * User (作者): MRui
    * TODO (描述)：重写凭证规则（密码认证）
    * Data：2019-01-13 22:50
    */
    @Override
    public boolean doCredentialsMatch(AuthenticationToken token, AuthenticationInfo info) {
        return super.doCredentialsMatch(token, info);
    }
}
